package com.woniu.user.service.impl;

import com.woniu.common.entity.Dog;
import com.woniu.user.mapper.PetMapper;
import com.woniu.user.service.PetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author author
 * @create 2021/5/19
 */
@Service
public class PetServiceImpl implements PetService {

    @Autowired
    PetMapper petMapper;

    @Override
    public List<Dog> selectDogByUserid(Integer u_id) {
        return petMapper.selectDogByUserid(u_id);
    }

    //上传电子犬证
    @Override
    public boolean addetcImage(Dog dog) {
        return petMapper.addetcImage(dog);
    }

    @Override
    public List<Dog> selectdogetc_image(Integer u_id) {
        return petMapper.selectdogetc_image(u_id);
    }

    @Override
    public Dog selectDog(String name, String icd, String tel, String dogetc) {
        return petMapper.selectDog(name,icd,tel,dogetc);
    }
}
